package com.jm.viewmodel;

import java.util.Date;

import org.apache.struts2.json.annotations.JSON;

import com.jm.entity.Agenttype;
import com.sun.org.apache.xml.internal.security.keys.keyresolver.implementations.PrivateKeyResolver;

public class User {
	private String mkey;
	private String ret;
	//登录后返回的基本字段
	private String wechat;
	private long authorizedpersonid;
	private String upname;
	private String headicon;
	private String nickname;
	private Date authoriSTime;
	private Date authoriETime;
	private long userid;
//	private Agenttype agenttype;
	private long agenttypeid;
	private String agenttypename;
	private String phone;
	private String isAuthorit;//授权用户才能登录
	private String idnumber ;//身份证号
	private int canupgradelevel; //可以升级到的级别
	
	//新增需求 每个用户新增 区域属性
	private String area;
	private int areaid;
	//用户认证图片，用来授权参考
	private String identifyicon;
	
	private Date createTime;
	
	private String authorizenumber;
	private String authorizeimg;
	//用户详细信息特有
	private String downagents;//下级代理总数量  暂时只提供总数，后期看需求是否需要详细显示各级下级数量
	
     private long createAreaUid;//Area创建者的uid
     private int allbuckets; //该区域的总桶数
	
	
     
	public int getCanupgradelevel() {
		return canupgradelevel;
	}
	public void setCanupgradelevel(int canupgradelevel) {
		this.canupgradelevel = canupgradelevel;
	}
	public long getCreateAreaUid() {
		return createAreaUid;
	}
	public void setCreateAreaUid(long createAreaUid) {
		this.createAreaUid = createAreaUid;
	}
	public int getAllbuckets() {
		return allbuckets;
	}
	public void setAllbuckets(int allbuckets) {
		this.allbuckets = allbuckets;
	}
	public String getAuthorizeimg() {
		return authorizeimg;
	}
	public void setAuthorizeimg(String authorizeimg) {
		this.authorizeimg = authorizeimg;
	}
	public String getAuthorizenumber() {
		return authorizenumber;
	}
	public void setAuthorizenumber(String authorizenumber) {
		this.authorizenumber = authorizenumber;
	}
	public String getDownagents() {
		return downagents;
	}
	public void setDownagents(String downagents) {
		this.downagents = downagents;
	}
	public String getUpname() {
		return upname;
	}
	public void setUpname(String upname) {
		this.upname = upname;
	}
	public int getAreaid() {
		return areaid;
	}
	public void setAreaid(int areaid) {
		this.areaid = areaid;
	}
	public String getIdnumber() {
		return idnumber;
	}
	public void setIdnumber(String idnumber) {
		this.idnumber = idnumber;
	}
	@JSON(format="yyyy-MM-dd") 
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getRet() {
		return ret;
	}
	public String getIdentifyicon() {
		return identifyicon;
	}
	public void setIdentifyicon(String identifyicon) {
		this.identifyicon = identifyicon;
	}
	public String getIsAuthorit() {
		return isAuthorit;
	}
	public void setIsAuthorit(String isAuthorit) {
		this.isAuthorit = isAuthorit;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getMkey() {
		return mkey;
	}
	public void setMkey(String mkey) {
		this.mkey = mkey;
	}
	public String getWechat() {
		return wechat;
	}
	public void setWechat(String wechat) {
		this.wechat = wechat;
	}
	public long getAuthorizedpersonid() {
		return authorizedpersonid;
	}
	public void setAuthorizedpersonid(long authorizedpersonid) {
		this.authorizedpersonid = authorizedpersonid;
	}

	public String getHeadicon() {
		return headicon;
	}
	public void setHeadicon(String headicon) {
		this.headicon = headicon;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	@JSON(format="yyyy-MM-dd") 
	public Date getAuthoriSTime() {
		return authoriSTime;
	}
	public void setAuthoriSTime(Date authoriSTime) {
		this.authoriSTime = authoriSTime;
	}
	@JSON(format="yyyy-MM-dd") 
	public Date getAuthoriETime() {
		return authoriETime;
	}
	public void setAuthoriETime(Date authoriETime) {
		this.authoriETime = authoriETime;
	}
	public long getUserid() {
		return userid;
	}
	public void setUserid(long userid) {
		this.userid = userid;
	}
	
	public long getAgenttypeid() {
		return agenttypeid;
	}
	public void setAgenttypeid(long agenttypeid) {
		this.agenttypeid = agenttypeid;
	}
	public String getAgenttypename() {
		return agenttypename;
	}
	public void setAgenttypename(String agenttypename) {
		this.agenttypename = agenttypename;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public void setRet(String ret) {
		this.ret = ret;
	}

	public String getmkey() {
		return mkey;
	}
	public void setmkey(String mkey) {
		this.mkey = mkey;
	}
	
	
}
